package com.example.member.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.member.R
import com.example.member.entity.MembershipEntity

class MemberAdapter:BaseQuickAdapter<MembershipEntity,BaseViewHolder>(R.layout.item_member) {
    override fun convert(holder: BaseViewHolder, item: MembershipEntity) {
       holder.setText(R.id.tv1,"商家"+item?.merchantDiscount+"折")
       holder.setText(R.id.tv2,""+item?.pointsToCash+"积分可抵1元")
       holder.setText(R.id.tv3,""+item?.parkingCoupons+"元停车券")
    }

}